{extend name="public:layout" /}
{block name="title"}商品内容页{/block}
{block name="head"}
<style>
    h1{font-size:18px;}
    .goods-attr{font-size:32px;display:block;clear:both;}
    .goods-attr .dt{font-size:32px;float:left;margin-right:10px;}
    .goods-attr .dd{}
    .goods-attr .dd .item{float:left;width:120px;background:blue;color:#fff;margin:5px;}
    .goods-attr .dd .disabled{background:#f4f4f4;color:#979797}
    .goods-attr .dd .selected{background:red;color:#fff;}
</style>
{/block}
{block name="body"}
<div class="docart">
    <strong>店铺名称：</strong>{$goodsInfo.site_name}<br/>
    <strong>商品标题：</strong>{$goodsInfo.goods_name}<br/>
    <strong>商品副标题：</strong>{$goodsInfo.goods_name}<br/>
    <strong>商品库存：</strong>{$goodsInfo.goods_stock}<br/>
    <strong>市场价：</strong>{$goodsInfo.market_price}元<br/>
    <strong>当前价格：</strong><span class="current-price">{$goodsInfo.simple_price}元</span><br/>
    <strong>总价：</strong><span class="total-price">{$goodsInfo.simple_price*$goodsInfo.minimum}元</span><br/>
    {eq name="goodsInfo.is_ladder" value="1"}
    <strong>商品阶梯价：</strong><br/>
    {foreach goodsInfo.ladder_price as $key=>$value}
    买{$key}件{$value}元<br/>
    {/foreach}
    {/eq}<br/>
    <h1>商品规格</h1>
    {include file="./tpl/_core/choose_attrs.html" /}
    <div style="clear:both"></div>

    <h1>加入购物车</h1>
    -----------------------------<br/>
    <button type="button" class="dec">-</button>
    <input type="text" value="{$goodsInfo.minimum}" class="num" />
    <button type="button" class="inc">+</button>
    -----------------------------<br/>
    <button type="button" class="addcart">加入购物车</button>
    <button type="button" class="addbuy">立即购买</button>
</div>
{/block}
{block name="script"}
<script>
    var skulist={$skuList};
    goodsItem(skulist,"{$goodsInfo.is_attr}");
</script>
{/block}